package com.groupname.dangerousdelves;

import junit.framework.TestCase;

// -------------------------------------------------------------------------
/**
 *  Tests Weapon.
 *  @author sluke1
 *  @version Dec 7, 2012
 */

public class ShieldTest
    extends TestCase
{
    Shield test;

    public void setUp()
    {
        test = new Shield();
    }

    // ----------------------------------------------------------
    /**
     * Tests getDefense().
     */
    public void testGetDefense()
    {
        assertEquals(0, test.getDefense());
    }
    // ----------------------------------------------------------
    /**
     * Tests setDefense().
     */
    public void testSetDefense()
    {
        test.setDefense(10);
        assertEquals(10, test.getDefense());
    }
    // ----------------------------------------------------------
    /**
     * Tests getDescription().
     */
    public void testGetDescription()
    {
        assertEquals("", test.getDescription());
    }
    // ----------------------------------------------------------
    /**
     * Tests setDescription.
     */
    public void testSetDescription()
    {
        test.setDescription("test");
        assertEquals("test", test.getDescription());
    }
    // ----------------------------------------------------------
    /**
     * Tests getEquipped.
     */
    public void testGetEquipped()
    {
        assertFalse(test.getEquipped());
    }
    // ----------------------------------------------------------
    /**
     * Tests setEquipped().
     */
    public void testSetEquipped()
    {
        test.setEquipped(true);
        assertTrue(test.getEquipped());
    }
}
